package com.jungle.sp.daily.sms.twilio;

import com.twilio.Twilio;
import com.twilio.rest.verify.v2.service.VerificationCheck;

/**
 * @author Jungle
 * @create 2024-12-03 9:43
 */
public class Example1 {
    public static final String ACCOUNT_SID = "AC650fb7c0283b0091ee319698779b7883";
    public static final String AUTH_TOKEN = "553380f6306ee0d15cd327394d2349a8";

    public static void main(String[] args) {
        Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
        String code = "175596";
        VerificationCheck verificationCheck = VerificationCheck.creator(
                        "VA481b5929a2b6a53b0e5a12d8a8e25870")
                .setTo("+447428307875")
                .setCode(code)
                .create();

        System.out.println(verificationCheck.getSid());
    }
}
